//
//  LSZNameDepartmentTableViewCell.m
//  PartyClassCloud
//
//  Created by 梁素珍 on 2018/9/2.
//  Copyright © 2018年 九酷. All rights reserved.
//

#import "LSZNameDepartmentTableViewCell.h"

@implementation LSZNameDepartmentTableViewCell
-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.labelNumber = [[UILabel alloc]init];
        self.labelNumber.textColor = lightColor;
        self.labelNumber.textAlignment = NSTextAlignmentCenter;
        self.labelNumber.frame = CGRectMake(0, 10, 60, 60);
        [self addSubview:self.labelNumber];
        
        self.labelName = [[UILabel alloc]init];
        self.labelName.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame), 10, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame)-27.2-25, 22);
        self.labelName.text = @"名字";
        self.labelName.textColor = titleColorLSZ;
        self.labelName.font = FONT_(15);
        [self addSubview:self.labelName];
        
        self.labelDepartment = [[UILabel alloc]init];
        self.labelDepartment.textColor = lightColor;
        self.labelDepartment.font = FONT_(14);
        self.labelDepartment.frame = CGRectMake(CGRectGetMaxX(self.labelNumber.frame), CGRectGetMaxY(self.labelName.frame)+15, ScreenWidth-CGRectGetMaxX(self.labelNumber.frame), 20);
        [self addSubview:self.labelDepartment];
        
        self.imageViewIcon = [[UIImageView alloc]init];
        self.imageViewIcon.frame = CGRectMake(CGRectGetMaxX(self.labelName.frame), 20, 27.2, 33.6);
        [self addSubview:self.imageViewIcon];
    }
    return self;
}

@end
